#!/usr/bin/python
import web
import sys
WORK_PATH = sys.path[0]
APP_PATH = WORK_PATH[:-4]
sys.path.append(APP_PATH)
sys.path.append('%slib' % (APP_PATH))
from reg import reg
from login import login
from user import *
from main import *
class Run:
    def __init__(self):
        urls =(
            '/','login',
            '/reg','reg',
            '/main','main',
            '/login','login',
            '/myhome','myhome',
            '/friend','friend',
            '/friend/add','friend_add',
            '/friend/del','friend_del',
            '/friend/update','friend_update'
        )
        app = web.application(urls, globals())
        return app.run()
